﻿using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class StorageLocationConfiguration : EntityTypeConfiguration<StorageLocation>
    {
        public StorageLocationConfiguration()
        {
            Property(g => g.StorageLocationID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
         
            Property(g => g.Modified).IsOptional();
           
            Property(g => g.Xpos).IsOptional();
            Property(g => g.Ypos).IsOptional();
            Property(g => g.Zpos).IsOptional();
            Property(g => g.Allocation).IsOptional();
            Property(g => g.AllocationState).IsOptional();
            Property(g => g.Field).IsOptional();
            Property(g => g.FieldIndex).IsOptional();
            Property(g => g.Name).IsOptional();
            Property(g => g.OrderIndex).IsOptional();
            Property(g => g.PlCode).IsOptional();
            Property(g => g.ScanCode).IsOptional();
            Property(g => g.StockTakingDate).IsOptional();
            Property(g => g.AreaID).IsRequired();
            Property(g => g.TypeID).IsRequired();
            Property(g => g.CurrentTcc).IsOptional();
            Property(g => g.ZoneID).IsRequired();
            Property(g => g.RackID).IsRequired();
            Property(g => g.ClientID).IsOptional();
            Property(g => g.ClusterID).IsRequired();
        }
    }
}